package cn.tedu.store.order.webapi.mapper;

import cn.tedu.store.commons.pojo.order.dto.OrderListTimeDTO;
import cn.tedu.store.commons.pojo.order.entity.Order;
import cn.tedu.store.commons.pojo.order.vo.OrderListVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {

    //新增订单
    int insertOrder(Order order);

    //查询当前用户指定时间范围内的所有订单信息
    List<OrderListVO> selectOrdersBetweenTimes(OrderListTimeDTO orderListTimeDTO);

    int updateOrderById(Order order);
}
